package util;

import java.awt.Color;
import java.awt.Font;



public class Contents {
	// 界面的名字
	public static final String FRAME_NAME = "GizmoBall";

	// 图片尺寸
	public static final int PICTURE_SIZE=30;

	// 界面的尺寸信息
	public static final int FRAME_WIDTH = 1050;
	public static final int FRAME_HEIGHT = 720;
	public static final int FRAME_X = 200;
	public static final int FRAME_Y = 80;
	public static final int ALL_LATTICE_X = 20;
	public static final int ALL_LATTICE_Y = 80;

	public static final int LATTICE_SIZE = 40;
	public static final int LATTICE_NUM_X = 15;
	public static final int LATTICE_NUM_Y = 15;
	public static final int ALL_LATTICE_WIDTH = LATTICE_SIZE * LATTICE_NUM_X;
	public static final int ALL_LATTICE_HEIGHT = LATTICE_SIZE * LATTICE_NUM_Y;
	public static final Color WALL_COLOR = new Color(0x8B8878);
	public static final Color WALL_FRAME_COLOR = new Color(0xFFFFFF);
	public static final int WALL_FRAME_WIDTH = 2;
	// 颜色
	public static final Color BG_COLOR = new Color(0xF5F3F1);
	public static final Color WALL_COLOR_ONE = new Color(0xF5F5F5);
	public static final Color WALL_COLOR_TWO = new Color(0xFFFFFF);
	// 字体
	public static final Font FONT = new Font("Times New Roman", Font.PLAIN, 28);

	// 定义每秒帧数和时间
	public static final int FPS = 30;
	public static final double DT = FPS / 1000.0;

	public static final double LOSS_COEFFICIENT = 0.96;

	public static final double PI = 3.1415926535;

	// 调用资源图片地址
	public static final String BALL_IMG_PATH = "resources/ball.png";
	public static final String WALL_IMG_PATH = "resources/background.png";
	public static final String PLATE_IMG_PATH = "resources/plate.png";
	public static final String SQUARE_IMG_PATH = "resources/square.png";
	public static final String BLACK_HOLE_IMG_PATH = "resources/blackhole.png";
	public static final String DIAMOND_ONE_IMG_PATH = "resources/diamond1.png";
	public static final String DIAMOND_TWO_IMG_PATH = "resources/diamond2.png";
	public static final String ELASTIC_BALL_ONE_IMG_PATH = "resources/elasticball1.png";
	public static final String ELASTIC_BALL_TWO_IMG_PATH = "resources/elasticball2.png";
	public static final String INCLINED_TRACK_IMG_PATH = "resources/inclinedtrack.png";
	public static final String STRAIGHT_TRACK_IMG_PATH = "resources/straighttrack.png";
	public static final String TRIANGLE_IMG_PATH = "resources/triangle.png";
	public static final String REBORN_BLACK_HOLE_IMG_PATH = "resources/reborn_blackhole.png";

	// 平台信息
	public static final int PLATE_WIDTH = 100;
	public static final int PLATE_HEIGHT = 10;

	//球初始数据
	public static final double BALL_INITIAL_VX = 50;
	public static final double BALL_INITIAL_VY = 0;
	public static final double BALL_INITIAL_AX = 0;
	public static final double BALL_INITIAL_AY = 160;
	public static final double BALL_INITIAL_MAXVX = 800;
	public static final double BALL_INITIAL_MAXVY = 800;

	public static final int PLATE_VELOCITY_X = 300;
	public static final int PLATE_VELOCITY_Y = 300;

}
